import Koa from 'koa'

const app = new Koa()

import middlewares from './middleware'

middlewares.koaBody(app)
middlewares.koaError(app)
middlewares.koaParameter(app)

app.use(async (ctx,next)=> {
    // console.log(ctx)
   await next()
})

export default app